<%@ page import="java.io.PrintWriter" %>
<%@ page import="java.net.Socket" %>
<%@ page import="java.util.Scanner" %>
<%@ page import="cn.claim.storage.tools.*" %>

<%@ page contentType="text/html;charset=UTF-8" session="false" trimDirectiveWhitespaces="true" %>
<%
  Socket socket = new Socket(Config.getProp("ip", "localhost"), Integer.parseInt(Config.getProp("fileServerPort", "6500")));
  PrintWriter _request = new PrintWriter(socket.getOutputStream());
  Scanner _response = new Scanner(socket.getInputStream());
  _request.println("server");
  _request.println("data");
  _request.flush();
  String data = _response.nextLine();
  socket.close();
%>

<%= data %>